package controllers;

import java.sql.SQLException;

import repository.IRepositorioControle;
import repository.RepositorioControle;

public class ControllerGeral {
	private IRepositorioControle controleRepositorioControle;

	// GETs e SETs do controleRepositorioControle
	// --------------------------------------------------------------------
	public IRepositorioControle getControleRepositorioControle() {
		return controleRepositorioControle;
	}

	// --------------------------------------------------------------------
	public void setControleRepositorioControle(
			IRepositorioControle controleRepositorioControle) {
		this.controleRepositorioControle = controleRepositorioControle;
	}

	// --------------------------------------------------------------------
	public ControllerGeral(RepositorioControle repositorioControle) {
		this.setControleRepositorioControle(repositorioControle);
	}
	// --------------------------------------------------------------------
	public boolean 	limparBanco() throws SQLException {
		return controleRepositorioControle.limparBanco();
	}
	// -------------------------------------------------------------------
	public boolean 	testeConexaoIntranet() throws SQLException{
		return controleRepositorioControle.testeConexaoIntranet();
	}
	// -------------------------------------------------------------------
	public boolean 	testeConexaoLocal() throws SQLException{
		return controleRepositorioControle.testeConexaoLocal();
	}
	// -------------------------------------------------------------------

}
